<?php

namespace app\admin\model;

class EquipManage extends BaseModel
{
    protected $name = 'equip_manage';

    public function manage()
    {
        return $this->morphTo(
            ['type', 'manage_id'],
            [
                'student' => Student::class,
                'teacher' => User::class,
            ]
        );
    }
}